<template>
  <div class="toast tanxin" v-show="$store.state.toast.show">
    <i :class="['iconfont', $store.state.toast.icon]"></i>
    <section>{{ $store.state.toast.content }}</section>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>
<style lang = "less" scoped>
.toast {
  position: fixed;
  width: 320px;
  height: 100px;
  background-color: rgba(31, 30, 30, 0.836);
  padding: 10px 20px;
  align-items: center;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border-radius: 5px;
  box-shadow: 0 0 10px pink;
  color: #fff;
  font-size: 16px;
  line-height: 30px;
  .section{
    text-align: center;
  }
}
</style>
